--- (6) Debian6.0(Squeeze) 導入---

b) HDDフォーマット〜Squeezeダウンロード

(a)へ戻る <= => (c)へ進む

---------------------------------------------------
色分け: 黒:画面表示  入力   コメント
---------------------------------------------------

/* フラッシュメモリのLinuxの起動完了の所からはじまります */

/* まず、HDDに何か1つパーティションを作ります */

/ # fdisk /dev/sda

The number of cylinders for this disk is set to 38154.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-38154, default 1): [Enter]
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-38154, default 38154):[Enter]  /* ここは適当でいいので、最大とした */
Using default value 38154

Command (m for help): p                   /* 結果の確認 */

Disk /dev/sda: 40.0 GB, 40007761920 bytes
64 heads, 32 sectors/track, 38154 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 38154 39069680 83 Linux

Command (m for help): w                   /* 結果を保存して終了 */
The partition table has been altered!

Calling ioctl() to re-read partition table.
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
SCSI device sda: drive cache: write back
sda: sda1
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
SCSI device sda: drive cache: write back
sda: sda1
Syncing disks.
/ #
/ # mkfs.ext2 /dev/sda1                   /* HDD領域を EXT2 でフォーマット */
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
4889248 inodes, 9767420 blocks
488371 blocks (5.00%) reserved for the super user
First data block=0
299 block groups
32768 blocks per group, 32768 fragments per group
16352 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 34 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
/ #
/ # mount -t ext2 /dev/sda1 /mnt/disk1        /* フォーマットした領域をマウント*/
/ #
/ # df -h                            /* マウント状況を確認 */
Filesystem Size Used Available Use% Mounted on
/dev/mtd2 64.0M 16.0M 48.0M 25% /
/dev/ram1 8.0M 152.0k 7.9M 2% /mnt/ram
/dev/mtd3 188.0M 14.9M 173.1M 8% /mnt/mtd
/dev/sda1 36.7G 20.0k 34.8G 0% /mnt/disk1      /* 今回作成したHDDの領域 */
/ #
/ # cd /mnt/disk1                      /* マウントしたHDDに移動 */
/mnt/disk1 #

/* 以下、必要な3つのファイルをダウンロード */
/mnt/disk1 # wget http://ftp.jp.debian.org/debian/dists/stable/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/config-debian
Connecting to ftp.jp.debian.org[150.65.7.130]:80

config-debian 100% |*****************************| 1535 00:00 ETA
/mnt/disk1 #
/mnt/disk1 # wget http://ftp.jp.debian.org/debian/dists/stable/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/initrd.buffalo
Connecting to ftp.jp.debian.org[150.65.7.130]:80

initrd.buffalo 100% |*****************************| 3978 KB 00:00 ETA
/mnt/disk1 #
/mnt/disk1 # wget http://ftp.jp.debian.org/debian/dists/stable/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/uImage.buffalo
Connecting to ftp.jp.debian.org[150.65.7.130]:80

uImage.buffalo 100% |*****************************| 1283 KB 00:00 ETA
/mnt/disk1 #
/mnt/disk1 # ls
config-debian initrd.buffalo lost+found uImage.buffalo  /* これら、3つのファイルがダウンロードされた */
/mnt/disk1 #
/mnt/disk1 # sh config-debian                /* 「config-debian」を実行 */
Saving U-Boot environment to ubootenv.bak... done.
Changing U-Boot environment...
>nvram_set:bootcmd = ide reset; ext2load ide 0:1 $(default_kernel_addr) /$(kernel); ext2load ide 0:1 $(default_initrd_addr) /$(initrd); setenv bootargs $(bootargs_base); bootm $(default_kernel_addr) $(default_initrd_addr)
done.
Please reboot your Kurobox Pro.
/mnt/disk1 # reboot


(a)へ戻る <= => (c)へ進む

Return

おニッコ倶楽部 Home

2011/12/21